realUser = "jason"
realPasswd = "123456"
num = 3
while num:
    num -= 1
    username = input(">>请输入用户名:")
    passwd = input(">>请输入密码:")
    if (username == realUser) and (passwd == realPasswd):
        print("登陆成功！\n用户名：{}\n密码：{}".format(username, passwd))
        break
    else:
        print("用户名或密码错误，请重新输入！")
        continue

# good